// 路由主要是存储路由 信息
// 当一个应用页面比较多的时候，使用一个独立的routes文件去保存路由信息，方便后期管理页面路由信息

import {
  PieChartOutlined,
  CodeSandboxOutlined,
  AuditOutlined,
  BookOutlined,
  // PropertySafetyOutlined,
  // PayCircleOutlined,
  // ShareAltOutlined,
  // ShakeOutlined,
  // VerifiedOutlined,
  // ProjectOutlined,
  // NodeIndexOutlined
} from '@ant-design/icons'

import Dashboard from '../views/01-dashboard'
import Workforbench from '../views/02-workforbench'
import Newmedical from '../views/03-newmedical'
import Newregister from '../views/04-newregister'
import Mewregister_one from '../views/04-newregister/01--newregister'
import Registerrecord_two from '../views/04-newregister/02--registerrecord'
// import Drugsall from '../views/05-drugsall'
// import ChargeControl from '../views/06-chargecontrol'
// import Patientmanage from '../views/07-patientmanage'
// import Drugmanage from '../views/08-drugmanage'
// import Druginformation_one from '../views/08-drugmanage/001-druginformation'
// import Adddruginformation from '../views/08-drugmanage/002-adddruginformation'

// import Vipmanage from '../views/09-vipmange'
// import Allreport from '../views/10-allreport'
// import Systemsettings from '../views/11-systemsettings'


import Login from '../views/login'
import Notfound from '../views/not-found'
export const writeRoutes = [
  {
    path: '/login',
    component: Login,
    meta: {
      id: 11,
      title: '登录'
    }
  },
  {
    path: '/404',
    component: Notfound,
    meta: {
      id: 12,
      title: '未找到'
    }
  }
]

export const permissionRoutes = [
  { // 首页仪表盘
    path: '/admin/dashboard',
    component: Dashboard,
    meta: {
      id: 21,
      title: "经营概况",
      icon: PieChartOutlined 
    }
  },
  { // 工作台
    path: '/admin/workforbench',
    component: Workforbench,
    meta: {
      id: 22,
      title: "工作台",
      icon: CodeSandboxOutlined
    }
  },
  { // 新开就诊
    path: '/admin/newmedical',
    component: Newmedical,
    meta: {
      id: 23,
      title: "新开就诊",
      icon: AuditOutlined
    }
  },
  { // 挂号管理
    path: '/admin/newregister',
    component: Newregister,
    meta: {
      id: 24,
      title: "挂号管理",
      icon: BookOutlined
    },
    children: [
      { //新增加挂号
        path: '/admin/newregister/newregister_one',
        component: Mewregister_one,
        meta:{
          title: '新增挂号',
          id: 241
        }
      },
      { // 挂号记录
        path: '/admin/newregister/adddruginformation',
        component: Registerrecord_two,
        meta:{
          title: '挂号记录',
          id:242
        }
      }
    ]
  }

  // { // 药瓶零售
  //   path: '/admin/drugsall',
  //   component: Drugsall,
  //   meta: {
  //     id: 25,
  //     title: "药瓶零售",
  //     icon: PropertySafetyOutlined
  //   }
  // },
  // { // 收费管理
  //   path: '/admin/chargeControl',
  //   component: ChargeControl,
  //   meta: {
  //     id: 26,
  //     title: "收费管理",
  //     icon: PayCircleOutlined
  //   }
  // },
  // { // 患者管理
  //   path: '/admin/patientmanage',
  //   component: Patientmanage,
  //   meta: {
  //     id: 27,
  //     title: "患者管理",
  //     icon: ShareAltOutlined
  //   }
  // },
  // { // 药瓶管理
  //   path: '/admin/drugmanage',
  //   component: Drugmanage,
  //   meta: {
  //     id: 28,
  //     title: '药瓶管理',
  //     icon:ShakeOutlined
  //   },
  //   children: [
  //     {
  //       path: '/admin/drugmanage/druginformation_one',
  //       component: Druginformation_one
  //     },
  //     {
  //       path: '/admin/drugmanage/druginformation_one'
  //     }
  //   ]
  // },
  // { // 会员管理
  //   path: '/admin/vipmanage',
  //   component: Vipmanage,
  //   meta: {
  //     id: 29,
  //     title: '会员管理',
  //     icon: VerifiedOutlined
  //   }
  // },
  // { // 统计报表
  //   path: '/admin/allreport',
  //   component: Allreport,
  //   meta: {
  //     id: 210,
  //     title: '统计报表',
  //     icon: ProjectOutlined
  //   }
  // },
  // { // 系统设置
  //   path: '/admin/systemsettings',
  //   component: Systemsettings,
  //   meta: {
  //     id: 211,
  //     title: '系统设置',
  //     icon: NodeIndexOutlined
  //   }
  // }

]